import axios from 'axios'

const baseURL = '/api'
const http = axios.create({
  baseURL: baseURL,
  timeout: 8000
})

http.interceptors.response.use(response => {
  const res = response.data
  return res
})

export default http
